

local M = {}
-- 装备颜色
local equipment_color = require("equipment_color")

-- 在任务道具中找色【50级普通装备】
function M.find_50_quests(...)
	return findMultiColorInRegionFuzzy( 0x24d1d9, "-1|1|0x21e6eb,-2|2|0xa69157,-1|4|0x7c5c3e,0|5|0x654c3a,2|4|0x56321e,2|2|0xd49a56,2|-3|0xddd070,2|-5|0xeed17b,1|-7|0xfaf7ce", 90, 280, 110, 665, 225)
end

-- 在任务道具中找色【60级普通装备】
function M.find_60_quests(...)
	return findMultiColorInRegionFuzzy( 0x168b58, "-2|-3|0x43e3a3,1|-9|0xc6c7c0,9|3|0x624e3f,14|3|0x867566,-5|4|0x294e4c,-12|14|0xcd9435,-9|-9|0x729173,-15|18|0xab8a30,-15|17|0xedcb37", 90, 665, 125, 1030, 225);
end


-- 寻找图中是否存在珍品召唤兽_未选择的按钮
function M.find_pet(...)
	return findImageInRegionFuzzy("pet_unselected.png",65, 30,110,280,600,0);
end


function M.find_gold(v)
	return findImageInRegionFuzzy("gold_"..v..".png",65, 290,120,660,210,0);
end
-- 在商品中寻找价格为1200
function M.find_gold_500(...)
	return findImageInRegionFuzzy("gold_500.png",65, 290,120,660,210,0);
end

-- 在商品中寻找价格为1200
function M.find_gold_1200(...)
	return findImageInRegionFuzzy("gold_1200.png",65, 290,120,660,210,0);
end

-- 在商品中寻找价格为1350
function M.find_gold_1350(...)
	return findImageInRegionFuzzy("gold_1350.png",65, 290,120,660,210,0);
end

-- 在商品中寻找价格为1500
function M.find_gold_1500(...)
	return findImageInRegionFuzzy("gold_1500.png",65, 290,120,660,210,0);
end

-- 在商品中寻找价格为1650
function M.find_gold_1650(...)
	return findImageInRegionFuzzy("gold_1650.png",65, 290,120,660,210,0);
end

-- 在商品中寻找价格为1800
function M.find_gold_1800(...)
	return -1,-1
	--return findImageInRegionFuzzy("gold_1800.png",65, 290,120,660,210,0);
end

-- 在商品中寻找价格为1950
function M.find_gold_1950(...)
	return -1,-1
	--return findImageInRegionFuzzy("gold_1950.png",65, 290,120,660,210,0);
end

-- 在商品中寻找价格为2100
function M.find_gold_2100(...)
	return findImageInRegionFuzzy("gold_2100.png",65, 290,120,660,210,0);
end

-- 在商品中寻找价格为2250
function M.find_gold_2250(...)
	return findImageInRegionFuzzy("gold_2250.png",65, 290,120,660,210,0);
end

-- 游龙剑
function M.find_60_youlongjian(...)
	return equipment_color.find_60_youlongjian(290,120,660,210);
end

-- 蛇形月
function M.find_60_shexingyue(...)
	return findMultiColorInRegionFuzzy( 0x191d1d, "-1|2|0xbe9f7a,1|-3|0x4e6b46,1|-7|0x789043,1|-9|0x2b8a0d,8|-8|0x59aa4a,10|6|0x5d736c,20|18|0xa9bc92,-9|26|0x395e23,-17|12|0x59bd3a", 90, 290,120,660,210);
end

-- 玄铁枪
function M.find_60_xuantieqiang(...)
	return findMultiColorInRegionFuzzy( 0x41dacc, "2|1|0xe7e4b4,5|1|0xcaad75,7|5|0x101010,-15|13|0x4e8f79,0|-5|0x876439,-10|-7|0xe4be92,1|-15|0x595961,14|-12|0xe4da9d,21|-17|0x70717a", 90, 290,120,660,210);
end

-- 满天星
function M.find_60_mantianxing(...)
	return findMultiColorInRegionFuzzy( 0x39d2db, "1|-1|0x2ca9d3,3|-2|0xd0c34d,5|-6|0xf1d542,12|-20|0xf0f4f3,-4|1|0xb59470,11|9|0xe4be92,-7|4|0xf5e6da,-15|17|0x9a721b,-10|-6|0x1eabd6", 90, 290,120,660,210);
end

-- 破天刀
function M.find_60_potiandao(...)
	return findMultiColorInRegionFuzzy( 0x26252f, "-3|0|0x3d7684,-5|0|0x5aacba,-8|-1|0xb4b6c5,-5|-6|0xebe8ee,4|7|0x86674d,4|9|0xdbb58b,4|91|0x8e90a0,21|-20|0x2d6aa1,4|-6|0x58aab3", 90, 290,120,660,210);
end

-- 青刚刺
function M.find_60_qinggangci(...)
	return findMultiColorInRegionFuzzy( 0x977e6d, "6|3|0x262236,6|11|0x494162,1|4|0x6970b3,-7|4|0xb8c7fe,-2|3|0x8d725d,4|-14|0x545dd7,13|-9|0x342e43,12|-5|0xdab48a,-8|-10|0xb4a694", 90, 290,120,660,210);
end

-- 水晶帽
function M.find_60_shuijingmao(...)
	return findMultiColorInRegionFuzzy( 0xd8ecf2, "0|3|0x58e3f3,0|-4|0x237eb9,-1|-22|0xe1ba8e,0|-19|0xa7bfd6,-6|12|0x123562,-9|24|0x98c9df,9|-2|0x1a59a5,23|1|0x10397a,28|1|0xcfe4f8", 90, 290,120,660,210);
end

-- 夜魔披
function M.find_60_yemopi(...)
	return findMultiColorInRegionFuzzy( 0xb73f3f, "-1|-3|0x554f51,-1|-7|0x261d20,-2|-16|0xbe4c4f,-2|-18|0xcc9c79,8|31|0xccc6be,23|22|0x2c2729,-23|22|0xae6552,1|-5|0x95898c,-10|-3|0xb53f3f", 90, 290,120,660,210);
end

-- 玉女环
function M.find_60_yunvhuan(...)
	return findMultiColorInRegionFuzzy( 0xdac9c5, "0|-2|0x895131,0|-4|0xdf766f,0|-12|0xce967d,5|17|0xe7dbd3,5|-7|0xd96b72,0|-21|0xe0b98e,-22|13|0xc8b4b1,-21|7|0xc28a5f,-26|4|0xe4be92", 90, 290,120,660,210);
end

-- 霓裳衣
function M.find_60_nichangyi(...)
	return findMultiColorInRegionFuzzy( 0x91549a, "1|-6|0xba89d1,1|-8|0xb08d6d,1|-11|0x45343a,1|-17|0xb99db4,-2|-23|0xb08668,-2|-28|0xd8b186,-8|-14|0xf9e3b6,11|16|0xfef7f7,14|9|0xe8bfbf", 90, 290,120,660,210);
end

-- 乱牙咬
function M.find_60_luanyayao(...)
	return findMultiColorInRegionFuzzy( 0xe4e0ce, "4|0|0xce4645,8|-1|0x58322f,16|0|0x9f9ea7,19|0|0xe0ba8e,-24|0|0x634643,-28|3|0x776da6,-2|-16|0x805f52,0|11|0x775452,4|11|0xd04a49", 90, 290,120,660,210);
end

-- 踏月履
function M.find_60_tayuelv(...)
	return findMultiColorInRegionFuzzy( 0x9a9292, "0|-6|0x9aa0b4,0|-7|0x7289b6,0|-11|0x5369a1,-1|-20|0x3c4073,-6|-12|0xc5cbd3,-12|-6|0xe4be92,-14|13|0x45507c,23|3|0xe9c37b,19|0|0xfae5af", 90, 290,120,660,210);
end

-- 金鳞绕
function M.find_60_jinlingrao(...)
	return findMultiColorInRegionFuzzy( 0xe4be92, "-2|-3|0xaa8666,-2|-5|0xa79d9c,-2|-12|0xd8d6dc,-5|-13|0xc6a576,-5|-15|0xe7c95b,-16|-15|0xc37120,-12|-5|0xa08f9a,-12|16|0xb6a5af,-3|18|0x9f95ab", 90, 290,120,660,210);
end

-- 风月链
function M.find_60_fengyuelian(...)
	return findMultiColorInRegionFuzzy( 0x80d2b1, "4|0|0xe5b446,-2|2|0xe9ac58,-7|1|0xf3d45f,-6|7|0xe1bb90,-9|15|0xf1da83,-13|17|0xa9b4b1,-15|19|0x4ca3ef,-16|21|0x3e6fa9,-1|12|0xe9c154", 90, 290,120,660,210);
end

-- 墨影扣
function M.find_60_moyingkou(...)
	return findMultiColorInRegionFuzzy( 0xe4be92, "5|-2|0xd3c7b5,8|-2|0xd6d4cf,19|5|0xa6a9ae,-18|-11|0x66717e,-17|-19|0x687280,-14|-19|0x4b5663,-13|-16|0xaebabb,0|-13|0xd6dad8,-18|-2|0xa17f64", 90, 290,120,660,210);
end

-- 莲音玦
function M.find_60_lianyinjue(...)
	return findMultiColorInRegionFuzzy( 0xe9ab90, "-7|0|0xb5ae73,-14|0|0xd6f4a0,-8|-9|0xdd7a6c,-7|-12|0xe8a593,-1|-29|0xea564e,12|-19|0xe4897b,26|-1|0xba7a81,20|5|0xd7b2b6,15|8|0xb9c29d", 90, 290,120,660,210);
end

-- 是否打开道具选择框
function M.find_select_quests(...)
	return findImageInRegionFuzzy("select_60_quests.png",90, 280,550,510,600,0);
end

-- 寻找未选中的【任务道具】按钮
function M.find_quests(...)		
	return findImageInRegionFuzzy("quests_unselected.png",65, 30,110,280,600,0);
end

function M.find_buy_button(...)
	return findImageInRegionFuzzy("buy_button.png",90, 830,480,980,525,0);
end

function M.find_no_gold(...)
	return findImageInRegionFuzzy("no_gold.png",90, 840,510,1025,565,0);
end

--init(1);
--x,y = M.find_60_youlongjian();
--toast(x..","..y);

return M;